package tom.shared;

import java.io.Serializable;

import com.google.gwt.view.client.ProvidesKey;

public class Company implements Serializable {
	private static final long serialVersionUID = -2871171328706352156L;

	public static final ProvidesKey<Company> KEY_PROVIDER = new ProvidesKey<Company>() {
		public Object getKey(Company item) {
			return item == null ? null : item.comCode;
		}
	};

	public Company() {
	}

	private String comCode;
	private String name;
	private String address;
	private String telephone;
	public Integer getInvoiceNo() {
		return invoiceNr;
	}

	public void setInvoiceNo(Integer invoiceNo) {
		this.invoiceNr = invoiceNo;
	}
	
	public Integer getItemNo() {
		return itemNr;
	}

	public void setItemNo(Integer itemNr) {
		this.itemNr = itemNr;
	}

	public Integer getCashInvoiceNo() {
		return cashInvoiceNr;
	}

	public void setCashInvoiceNo(Integer cashInvoiceNo) {
		this.cashInvoiceNr = cashInvoiceNo;
	}

	public Integer getCreditInvoiceNo() {
		return creditInvoiceNr;
	}

	public void setCreditInvoiceNo(Integer creditInvoiceNo) {
		this.creditInvoiceNr = creditInvoiceNo;
	}

	public Integer getPaymentNo() {
		return paymentNr;
	}

	public void setPaymentNo(Integer paymentNo) {
		this.paymentNr = paymentNo;
	}

	public Integer getVoucherNo() {
		return vouPurchaseNr;
	}

	public void setVoucherNo(Integer voucherNo) {
		this.vouPurchaseNr = voucherNo;
	}
	
	public Integer getVouRecieptNr() {
		return vouRecieptNr;
	}

	public void setVouRecieptNr(Integer vouRecieptNr) {
		this.vouRecieptNr = vouRecieptNr;
	}
	
	public Integer getVouServRecieptNr() {
		return vouServRecieptNr;
	}

	public void setVouServRecieptNr(Integer vouServRecieptNr) {
		this.vouServRecieptNr = vouServRecieptNr;
	}

	public Integer getPurchaseNo() {
		return purchaseNr;
	}

	public void setPurchaseNo(Integer purchaseNo) {
		this.purchaseNr = purchaseNo;
	}

	public Integer getGlBookingNo() {
		return glBookingNr;
	}

	public void setGlBookingNo(Integer glBookingNo) {
		this.glBookingNr = glBookingNo;
	}

	private Integer invoiceNr;
	private Integer itemNr;
	private Integer cashInvoiceNr;
	private Integer creditInvoiceNr;
	private Integer paymentNr;
	private Integer vouPurchaseNr;
	private Integer vouRecieptNr;
	private Integer vouServRecieptNr;
	private Integer purchaseNr;
	private Integer glBookingNr;
	private Integer contactNr;
	private String defaultVat;
	
	public Integer getContactNo() {
		return contactNr;
	}

	public void setContactNo(Integer contactNo) {
		this.contactNr = contactNo;
	}

	public String getComCode() {
		return comCode;
	}

	public void setComCode(String comCode) {
		this.comCode = comCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	public String getDefaultVat() {
		return defaultVat;
	}

	public void setDefaultVat(String defaultVat) {
		this.defaultVat = defaultVat;
	}


}
